<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('Dictype/index')}">字典类型</a></li>
        <li class="active"><a href="{:U('Dictype/edit',array('id'=>$id))}">字典类型编辑</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form" action="{:U('Dictype/edit_post')}" method="post">
        <fieldset>
            <div class="control-group">
                <label class="control-label">字典类型名称</label>
                <div class="controls">
                    <input type="text" name="frm[name]" id="name" value="{$dictype.name}">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">字典类型标识</label>
                <div class="controls">
                    <input type="text" name="frm[enname]" id="enname" value="{$dictype.enname}">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">状态</label>
                <div class="controls">
                <php>$state_true_checked=($dictype['status']==1)?"checked":"";</php>
                <php>$state_false_checked=($dictype['status']==2)?"checked":"";</php>
                    <input type="radio" name="frm[status]" value="1" {$state_true_checked}>启用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="frm[status]" value="2" {$state_false_checked}>禁用
                </div>
            </div>
        </fieldset>
        <div class="form-actions">
				<input type="hidden" name="id" value="{$dictype.id}"/>
				<button type="submit" class="btn btn-primary  js-ajax-submit">{:L('SAVE')}</button>
            <a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>